﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mark_dal
{
   public  class upyoh_dal
    {
       public int updateyh(string AdminName, string AdminPass, int AdminRole, int AdminStatus,int AdminId)
        {
            DBHelper db = new DBHelper();
            string sql = string.Format("update AdminInfo set AdminName={0},AdminPass={1},AdminRole={2},AdminStatus={3} where AdminId={4}", AdminName, AdminPass, AdminRole, AdminStatus,AdminId);
            int a=db.ExecuteNoQuery(sql);
            db.Close();
            return a;
        }
    }
}
